<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <!-- Title and other stuffs -->
    <title>Login - MoodStrap</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="author" content="">

    <!-- Stylesheets -->
    <link href="<?php echo base_url()?>resources/admin/style/bootstrap.css" rel="stylesheet">
    <link rel="stylesheet" href="<?php echo base_url()?>resources/admin/style/font-awesome.css">
    <link href="<?php echo base_url()?>resources/admin/style/style.css" rel="stylesheet">
    <link href="<?php echo base_url()?>resources/admin/style/bootstrap-responsive.html" rel="stylesheet">

    <!-- HTML5 Support for IE -->
    <!--[if lt IE 9]>
    <script src="<?php echo base_url()?>resources/admin/js/html5shim.js"></script>
    <![endif]-->

    <!-- Favicon -->
    <link rel="shortcut icon" href="<?php echo base_url()?>resources/admin/img/favicon/favicon.png">
</head>

<body>

<?php
$login = array(
    'name'	=> 'login',
    'id'	=> 'login',
    'value' => set_value('login'),
    'maxlength'	=> 80,
    'size'	=> 30,
);
if ($login_by_username AND $login_by_email) {
    $login_label = 'Email or login';
} else if ($login_by_username) {
    $login_label = 'Login';
} else {
    $login_label = 'Email';
}
$password = array(
    'name'	=> 'password',
    'id'	=> 'password',
    'size'	=> 30,
);
$remember = array(
    'name'	=> 'remember',
    'id'	=> 'remember',
    'value'	=> 1,
    'checked'	=> set_value('remember'),
    'style' => 'margin:0;padding:0',
);
$captcha = array(
    'name'	=> 'captcha',
    'id'	=> 'captcha',
    'maxlength'	=> 8,
);
?>

<!-- Form area -->
<div class="admin-form">
    <div class="container">

        <div class="row">
            <div class="col-md-12">
                <!-- Widget starts -->
                <div class="widget">
                    <!-- Widget head -->
                    <div class="widget-head">
                        <i class="icon-lock"></i> Login
                    </div>

                    <div class="widget-content">
                        <div class="padd">
                            <!-- Login form -->
                            <?php echo form_open($this->uri->uri_string(),array('class' => 'form-horizontal')); ?>
                                <!-- Email -->
                                <div class="form-group">
                                    <label class="control-label col-lg-3" for="<?php $login['id'] ?>">Email</label>
                                    <div class="col-lg-9">
                                        <input type="text" class="form-control" name="<?php echo $login['id'] ?>" id="<?php echo $login['id'] ?>" placeholder="Email">
                                        <?php echo form_error($login['name']); ?><?php echo isset($errors[$login['name']])?$errors[$login['name']]:''; ?>
                                    </div>
                                </div>
                                <!-- Password -->
                                <div class="form-group">
                                    <label class="control-label col-lg-3" for="<?php $password['id'] ?>">Password</label>
                                    <div class="col-lg-9">
                                        <input type="password" class="form-control" name="<?php echo $password['id'] ?>" id="<?php echo $password['id'] ?>" placeholder="Password">
                                        <?php echo form_error($password['name']); ?><?php echo isset($errors[$password['name']])?$errors[$password['name']]:''; ?>
                                    </div>
                                </div>
                                <!-- Remember me checkbox and sign in button -->
                                <div class="form-group">
                                    <div class="col-lg-9 col-lg-offset-3">
                                        <div class="checkbox">
                                            <label>
                                                <input type="checkbox" id="<?php echo $remember['id'] ?>" name="<?php echo $remember['id'] ?>"> Remember me
                                            </label>
                                        </div>
                                        <?php echo form_error($remember['name']); ?><?php echo isset($errors[$remember['name']])?$remember[$login['name']]:''; ?>
                                    </div>
                                </div>
                                <div class="col-lg-9 col-lg-offset-3">
                                    <button type="submit" class="btn btn-danger">Sign in</button>
                                    <button type="reset" class="btn btn-default">Reset</button>
                                </div>
                                <br />
                            <?php echo form_close(); ?>

                        </div>
                    </div>

                    <div class="widget-foot">
                        <?php if ($this->config->item('allow_registration', 'tank_auth')) echo anchor('/auth/register/', 'Register here'); ?>
                        <?php echo anchor('/auth/forgot_password/', 'Forgot password'); ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>



<!-- JS -->
<script src="<?php echo base_url()?>resources/admin/js/jquery.js"></script>
<script src="<?php echo base_url()?>resources/admin/js/bootstrap.js"></script>
</body>
</html>